FROM container-registry.oracle.com/graalvm/jdk:21
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
EXPOSE 9000/tcp
ADD target/share.jar ./app.jar
ENTRYPOINT ["java", "-Duser.timezone=GMT+08", "-Djava.security.egd=file:/dev/./urandom", \
            "-Dfile.encoding=utf-8", "-jar", "-server", "-XX:+UseContainerSupport", "-XX:+UseZGC", \
            "app.jar"]

